init: docker-down-clear docker-up
up: docker-up
down: docker-down
restart: down up
build: docker-down-clear docker-build
test: docker-yii2-test

docker-up:
	docker-compose up -d

docker-down:
	docker-compose down --remove-orphans

docker-down-clear:
	docker-compose down -v --remove-orphans

docker-build:
	docker-compose build --no-cache

docker-yii2-test:
	docker-compose run --rm api-php-fpm /app/vendor/bin/codecept run